// var loadingScene = require('src/loading-scene.671ab');
// cc.director.runSceneImmediate(loadingScene);


cc.debug.setDisplayStats(false);

var scene = new cc.Scene();

var root = new cc.Node();
var canvas = root.addComponent(cc.Canvas);
root.parent = scene;


var bg = new cc.Node();
var bgSpr = bg.addComponent(cc.Sprite);
bg.parent = root;
cc.assetManager.loadRemote("src/loading_bg.png", (err, texture) => {
  if (err) {
    console.log(err);
    return;
  }
  bgSpr.spriteFrame = new cc.SpriteFrame(texture);
  bg.width = 1000;
  bg.height = 2000;
  bg.color = cc.color(237, 218, 185);
});


var node = new cc.Node();
var label = node.addComponent(cc.Label);
label.string = "游戏资源加载中，请稍后...";
label.fontSize = 40;
label.srcBlendFactor = 770;
node.color = cc.color(93, 52, 34);
node.parent = root;
node.scale = 0.5;




module.exports = scene;